package com.think.common.core.context;

import org.springframework.stereotype.Component;


public class ClientHolder {

    private static final ThreadLocal<String> clientTypeHolder = new ThreadLocal<>();

    public static void setClientType(String clientType) {
        clientTypeHolder.set(clientType);
    }

    public static String getClientType() {
        return clientTypeHolder.get();
    }

    public static void remove() {
        clientTypeHolder.remove();
    }
}
